package com.austin.smp.common.api;

/**
 * 响应状态码
 *
 * @author austin
 * @since 2021/3/14 13:05
 */

public enum ResponseCode {

    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    ILLEGAL_ARGUMENT(3, "参数错误"),
    NEED_LOGIN(10, "用户未登录，请先登录");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
